import request from '@/utils/request'

// 查询价格类型列表
export function listPriceType(query) {
  return request({
    url: '/operator/priceType/list',
    method: 'get',
    params: query
  })
}

// 查询价格类型详细
export function getPriceType(priceTypeId) {
  return request({
    url: '/operator/priceType/' + priceTypeId,
    method: 'get'
  })
}

// 新增价格类型
export function addPriceType(data) {
  return request({
    url: '/operator/priceType',
    method: 'post',
    data: data
  })
}

// 修改价格类型
export function updatePriceType(data) {
  return request({
    url: '/operator/priceType',
    method: 'put',
    data: data
  })
}

// 删除价格类型
export function delPriceType(priceTypeId) {
  return request({
    url: '/operator/priceType/' + priceTypeId,
    method: 'delete'
  })
}

// 导出价格类型
export function exportPriceType(query) {
  return request({
    url: '/operator/priceType/export',
    method: 'get',
    params: query
  })
}